import Vue from 'vue'
import App from './App.vue'
//导入路由配置
import router from './router'
//导入清除默认样式的CSS

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'

import '../public/css/base_lijie.css'
import '../public/css/base.css'
import '../public/css/min.css'
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  ak: 'Nbr60aM3zSyhXbSuB6YcGPWENONMxLGT'
});
import store from './store'

import config from './config'
Vue.use(ElementUI);
// Vue.use(VueQuillEditor)
Vue.config.productionTip = false;
Vue.prototype.$config=config;
// 添加请求拦截器，在请求头中加token
axios.interceptors.request.use(
    config => {
      if (localStorage.getItem('authorization')) {
        config.headers.Authorization = localStorage.getItem('authorization');
      }
      return config;
    },
    error => {
      return Promise.reject(error);
    });
Vue.prototype.$ajax = axios

new Vue({
  store,
  router,
  render: h => h(App),
}).$mount('#app')